package com.sftz.modules.minapp.activityRecord.module;

import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.annotation.Param;

import com.sftz.modules.minapp.activityRecord.form.MyteachActivityShowForm;
import com.sftz.modules.minapp.activityRecord.service.ActivityRecordViewService;

/**
 * @author   DuKL 教学活动记录
 * @Date	 2018年12月24日
 */
@IocBean
@At("/wx/activityRecord")
public class ActivityRecordModule {

	@Inject
	private ActivityRecordViewService ActivityRecordViewService;

	@At
	@Ok("json")
	public Object activityData(@Param("..") final MyteachActivityShowForm myteachActivityShowForm) {
		return ActivityRecordViewService.activityData(myteachActivityShowForm);
	}

	@At
	@Ok("json")
	public Object activityStatusData(@Param("..") final MyteachActivityShowForm myteachActivityShowForm) {
		return ActivityRecordViewService.activityList(myteachActivityShowForm);
	}

}